import { Column, Model, Table } from 'sequelize-typescript';
import { DataTypes } from 'sequelize';

@Table({ tableName: 'dp_pgy' })
export class DPPgyModel extends Model {
  @Column({ type: DataTypes.INTEGER, field: 'group_id' })
  groupId!: number;

  @Column({ type: DataTypes.STRING, field: 'name' })
  name!: string;

  @Column({ type: DataTypes.TINYINT, field: 'red_id' })
  redId!: number;

  @Column({ type: DataTypes.STRING, field: 'link_url' })
  linkUrl!: string;

  @Column({ type: DataTypes.STRING, field: 'blogger_id' })
  bloggerId!: string;

  @Column({ type: DataTypes.STRING, field: 'blogger_id_key' })
  bloggerIdKey!: string;

  @Column({ type: DataTypes.TINYINT, field: 'is_fetch_data' })
  isFetchData!: number;

  @Column({ type: DataTypes.TINYINT, field: 'is_exception' })
  isException!: number;

  @Column({ type: DataTypes.STRING, field: 'msg' })
  msg!: string;
}
